package com.example.userservice.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.feign.entity.User;
import com.example.feign.result.AjaxResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 软工2104-李家强-2100770248
 * @since 2023-09-19
 */
public interface UserService extends IService<User> {

    AjaxResult followCommons(String id, String userId);

    User getUserByName(String username);

    AjaxResult exit(String token);

    HashMap<String, Object> successLogin(User userInfo);

    AjaxResult register(User user);

    void getCode(HttpServletRequest request, HttpServletResponse response);

    AjaxResult upLoadPhoto(MultipartFile multipartFile, User userInfo);

    AjaxResult updateUserInfo(User user, String token);
}
